home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / 3dvect39 / xmode.ext < prev    next >
Encoding:
Text File  |  1994-10-30  |  3.4 KB  |  132 lines

  1. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  2. ;
  3. ; Filename     : xmode.ext
  4. ; Included from: Your Program
  5. ; Description  : External Definitions
  6. ;
  7. ; Written by: John McCarthy
  8. ;             1316 Redwood Lane
  9. ;             Pickering, Ontario.
  10. ;             Canada, Earth, Milky Way (for those out-of-towners)
  11. ;             L1X 1C5
  12. ;
  13. ; Internet/Usenet:  BRIAN.MCCARTHY@CANREM.COM
  14. ;         Fidonet:  Brian McCarthy 1:229/15
  15. ;   RIME/Relaynet: ->CRS
  16. ;
  17. ; Home phone, (905) 831-1944, don't call at 2 am eh!
  18. ;
  19. ; John Mccarthy would really love to work for a company programming Robots
  20. ; or doing some high intensive CPU work.  Hint. Hint.
  21. ;
  22. ; Send me your protected mode source code!
  23. ; Send me your Objects!
  24. ; But most of all, Send me a postcard!!!!
  25. ;
  26. ;░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
  27.  
  28.          extrn _screen_width:word
  29.          extrn _screen_height:word
  30.  
  31.          extrn _last_page:word
  32.          extrn _page_addr:dword
  33.  
  34.          extrn _page_size:word
  35.  
  36.          extrn _display_page:word
  37.          extrn _active_page:word
  38.  
  39.          extrn _current_page:dword
  40.  
  41.          extrn _current_xoffset:word
  42.          extrn _current_yoffset:word
  43.  
  44.          extrn _current_moffset:dword
  45.  
  46.          extrn _max_xoffset:word
  47.          extrn _max_yoffset:word
  48.  
  49.          extrn _charset_low:dword
  50.          extrn _charset_hi:dword
  51.  
  52.          extrn _left_clip_mask:byte
  53.          extrn _right_clip_mask:byte
  54.  
  55.          extrn _set_vga_modex:near
  56.          extrn _set_modex:near
  57.          extrn _clear_vga_screen:near
  58.          extrn _set_point:near
  59.          extrn _read_point:near
  60.          extrn _fill_block:near
  61.          extrn _draw_line:near
  62.          extrn _set_dac_register:near
  63.          extrn _load_dac_registers:near
  64.          extrn _read_dac_registers:near
  65.          extrn _set_active_page:near
  66.          extrn _get_active_page:near
  67.          extrn _set_display_page:near
  68.          extrn _get_display_page:near
  69.          extrn _get_x_offset:near
  70.          extrn _get_y_offset:near
  71.          extrn _sync_display:near
  72.          extrn _gprintc:near
  73.          extrn _tgprintc:near
  74.          extrn _print_str:near
  75.          extrn _tprint_str:near
  76.          extrn _set_display_font:near
  77.          extrn _draw_bitmap:near
  78.          extrn _tdraw_bitmap:near
  79.          extrn _copy_page:near
  80.          extrn _copy_bitmap:near
  81.          extrn _mode03:near
  82.          extrn _wipeoffpalette:near
  83.          extrn _turn_screen_off:near
  84.          extrn _turn_screen_on:near
  85.          extrn _flip_page:near
  86.  
  87. drawline macro xx1,yy1,xx2,yy2,col
  88.          pushw xx1
  89.          pushw yy1
  90.          pushw xx2
  91.          pushw yy2
  92.          pushw col
  93.          call _draw_line
  94.          endm
  95.  
  96. block    macro xx1,yy1,xx2,yy2,col
  97.          pushw xx1
  98.          pushw yy1
  99.          pushw xx2
  100.          pushw yy2
  101.          pushw col
  102.          call _fill_block
  103.          endm
  104.  
  105. char     macro chr,xx,yy,fc                 ; plot character
  106.  
  107.          push ax bx cx dx
  108.          mov ax,chr
  109.          push ax
  110.          mov ax,xx
  111.          push ax
  112.          mov ax,yy
  113.          push ax
  114.          mov ax,0
  115.          push ax
  116.          call _tgprintc
  117.  
  118.          pop dx cx bx ax
  119.          mov ax,chr
  120.          push ax
  121.          mov ax,xx
  122.          add ax,1
  123.          push ax
  124.          mov ax,yy
  125.          sub ax,1
  126.          push ax
  127.          mov ax,fc
  128.          push ax
  129.          call _tgprintc
  130.          endm
  131.  
  132.